﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using URLPOC.Models;

namespace URLPOC.Controllers
{
    public class UserController : Controller
    {
        //
        // GET: /User/

        public ActionResult Index(int userID = 0)
        {
            if (userID == 0)
            {
                List<UserRequest> userRequest = new List<UserRequest>();
                userRequest.Add(new UserRequest() { ReqCount = 10, reqID = 1, ReqName = "Req1" });
                userRequest.Add(new UserRequest() { ReqCount = 10, reqID = 1, ReqName = "Req1" });
                userRequest.Add(new UserRequest() { ReqCount = 10, reqID = 1, ReqName = "Req1" });
                userRequest.Add(new UserRequest() { ReqCount = 10, reqID = 1, ReqName = "Req1" });
                return View(userRequest);
            }
            else
                return View();
        }

    }
}
